﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pornweb.aspx.cs" Inherits="pornNew.Account.pornweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 107px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    &nbsp;<table class="style1">
            <tr>
                <td class="style2">
                    Pubish Date&nbsp;
                </td>
                <td>
                    <div style = "float:left">
                    <asp:Calendar ID="txtCalendar" runat="server" BackColor="White" 
                        BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" 
                        Font-Size="9pt" ForeColor="#FF3300" Height="250px" NextPrevFormat="ShortMonth" 
                        Width="330px">
                        <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                            Height="8pt" />
                        <DayStyle BackColor="#CCCCCC" />
                        <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
                        <OtherMonthDayStyle ForeColor="#999999" />
                        <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                        <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" 
                            Font-Size="12pt" ForeColor="White" Height="12pt" />
                        <TodayDayStyle BackColor="#999999" ForeColor="White" />
                    </asp:Calendar>

                    </div>
                    <div style = "float:left; margin-left:30px;">
                    <asp:Calendar ID="txtCalendar2" runat="server" BackColor="White" 
                        BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" 
                        Font-Size="9pt" ForeColor="Red" Height="250px" NextPrevFormat="ShortMonth" 
                        Width="330px">
                        <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                            Height="8pt" />
                        <DayStyle BackColor="#CCCCCC" />
                        <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
                        <OtherMonthDayStyle ForeColor="#999999" />
                        <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                        <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" 
                            Font-Size="12pt" ForeColor="White" Height="12pt" />
                        <TodayDayStyle BackColor="#999999" ForeColor="White" />
                    </asp:Calendar>
                    </div>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    Title
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" ForeColor="#FF0066" Height="20px" 
                        ValidationGroup="T1" Width="143px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    Date</td>
                <td>
                    <asp:DropDownList ID="txtDate" runat="server" Height="16px" 
                        onselectedindexchanged="txtDate_SelectedIndexChanged" ValidationGroup="T1" 
                        Width="145px">
                    </asp:DropDownList>
                    <asp:CustomValidator ID="txtDateCustom" runat="server" 
                        ControlToValidate="txtDate" ErrorMessage="CustomValidator" ForeColor="Red" 
                        ValidationGroup="T1">วันที่ห้ามย้อนหลัง</asp:CustomValidator>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    Category</td>
                <td>
                    <asp:CheckBox ID="poaCheckbox" runat="server" BorderColor="#FF6666" 
                        CausesValidation="True" ForeColor="#009933" 
                        oncheckedchanged="txtCategory_CheckedChanged" Text="การเมือง" 
                        ValidationGroup="T1" />
                    <asp:CheckBox ID="poaCheckbox1" runat="server" CausesValidation="True" 
                        ForeColor="#009933" oncheckedchanged="บันเทิง_CheckedChanged" Text="บันเทิง" 
                        ValidationGroup="T1" />
                    <asp:CheckBox ID="poaCheckbox2" runat="server" ForeColor="#009933" 
                        Text="อาชญากรรม" ValidationGroup="T1" />
                    <asp:CheckBox ID="poaCheckbox3" runat="server" ForeColor="#009900" Text="กีฬา" 
                        ValidationGroup="T1" />
                    <asp:CustomValidator ID="txtCategoryCustom" runat="server" 
                        ControlToValidate="txtContent" ErrorMessage="เลือกได้ไม่เกิน 3  ประเภท" 
                        ForeColor="Red" onservervalidate="txtCategoryCustom_ServerValidate" 
                        ValidationGroup="T1"></asp:CustomValidator>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    Content</td>
                <td>
                    <asp:TextBox ID="txtContent" runat="server" ClientIDMode="AutoID" 
                        Height="170px" ontextchanged="txtContent_TextChanged" ValidationGroup="T1" 
                        ViewStateMode="Enabled" Width="382px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    Flie</td>
                <td>
                    <asp:TextBox ID="txtPictures" runat="server" Height="22px" ValidationGroup="T1" 
                        Width="218px"></asp:TextBox>
                    <asp:Button ID="txtBrower" runat="server" ForeColor="Red" 
                        onclick="txtBrower_Click" Text="Brower" ValidationGroup="T1" />
                    <asp:CustomValidator ID="txtBrowerCustom" runat="server" 
                        ErrorMessage="Pictures JPG,PNG,BMP,GIF" ForeColor="#660033" 
                        ValidationGroup="T1"></asp:CustomValidator>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="txtSave" runat="server" ForeColor="Maroon" 
                        onclick="txtSave_Click" Text="Save" ValidationGroup="T1" />
                    <asp:Button ID="txtCenter" runat="server" Text="Center" ValidationGroup="T1" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
&nbsp;&nbsp;
    
    </div>
    </form>
</body>
</html>
